/** 
 * mutations业务层代码提交
*/

import storage from './../utils/storage'

export default {
    // SAVEUSERINFO(state, userInfo) {
    //     console.log('state',state);
    //     console.log('userinnfo',userInfo);
    //     // state.userInfo = userInfo
    //     // storage.setItem('userInfo', userInfo)
    // },
    USERESIGER(state,value) {
        
    }, 
    LOGIN(state,userInfo) {
        state.userInfo = userInfo
        storage.setItem('userInfo', userInfo)
    },
    changeBread(state,value) {
        console.log('mutition');
        state.bread2.level2.name = value.name
        state.bread2.level2.path = value.path
    }

}